//
//  JaneUserInfoManager.m
//  EPA
//
//  Created by lanou3g on 16/4/25.
//  Copyright © 2016年 张静. All rights reserved.
//

#import "JaneUserInfoManager.h"

@implementation JaneUserInfoManager
+ (instancetype)shareManager {
    static JaneUserInfoManager *manager = nil;
    static dispatch_once_t onceToken;
    dispatch_once(&onceToken, ^{
        manager = [JaneUserInfoManager new];
    });
    return manager;
}
- (void)loginWithUserDict:(NSDictionary *)dict {
    if (dict) {
        [self setValuesForKeysWithDictionary:dict];
    }
}

- (void)setValue:(id)value forKey:(NSString *)key {
    [super setValue:value forKey:key];
    [[NSUserDefaults standardUserDefaults]setObject:value forKey:key];
    [[NSUserDefaults standardUserDefaults]synchronize];
}
- (void)setValue:(id)value forUndefinedKey:(NSString *)key {
    
}
@end
